<?php declare(strict_types=1);
namespace App\Http\Controller\Test;

use Swoft\Http\Message\Request;
use Swoft\Http\Server\Annotation\Mapping\Controller;
use Swoft\Http\Server\Annotation\Mapping\RequestMapping;
use Swoft\Http\Server\Annotation\Mapping\RequestMethod;
use ServiceComponents\Common\Common;

/**
 * https://gitee.com/manIT/swoft_consul/tree/master/app/Http/Controller
 * Class SwoftController
 *
 * @Controller(prefix="Swoft")
 * @package App\Http\Controller\Test
 */
class SwoftController extends BaseController
{

    /**
     * 测试 service-components 服务组件
     * @RequestMapping("test",method={RequestMethod::GET})
     */
    public function test(Request $request)
    {
        return Common::getRandChar(8);
    }

    /**
     * 测试高并发
     * @RequestMapping("high_concurrence",method={RequestMethod::GET})
     */
    public function highConcurrence(Request $request)
    {

    }


}